<?php
declare(strict_types=1);

namespace App\Enums;


class StreamerEnum
{
    // 任务周期
    const TASK_PERIOD_DAY = "day";
    const TASK_PERIOD_WEEK = "week";
    // 任务等级
    const TASK_LEVEL_PRIMARY = "primary";
    const TASK_LEVEL_ADVANCED = "advanced";
    // 任务类型
    const TASK_TYPE_ONLINE = "online"; // 在线
    const TASK_TYPE_USER_MATCH = "user-match"; // 匹配
    const TASK_TYPE_USER_CHAT = "user-chat"; // 私聊
    const TASK_TYPE_DYNAMIC = "dynamic"; // 动态
    const TASK_TYPE_RECEIVE_GIFTS = "receive-gifts"; // 流水
    // 任务状态
    const TASK_STATUS_UNOPENED = -1; // 未开启
    const TASK_STATUS_START = 0; // 进行中
    const TASK_STATUS_FINISH = 1; // 完成
    const TASK_STATUS_RECEIVE = 2; // 已领取
    const STREAM_LEVEL_CACHE_KEY = "streamer:weekLevel";
    const STREAM_LEVEL_ALTER_CACHE_KEY = "streamer:levelAlter";

    /**
     * 审核表 ln_streamer_apply
     */
    //审核状态：-1-拒绝， 0-待审核、1-通过
    const APPLY_AUDIT_STATUS_PASS = 1;
    const APPLY_AUDIT_STATUS_WAIT = 0;
    const APPLY_AUDIT_STATUS_REFUSE = -1;

    //认证状态：-1-平台取消，0-未认证， 1-认证成功
    const APPLY_ATTESTATION_STATUS_PASS = 1;
    const APPLY_ATTESTATION_STATUS_WAIT = 0;
    const APPLY_ATTESTATION_STATUS_REFUSE = -1;

    //面试状态：-1-拒绝， 0-待审核、1-通过
    const APPLY_INTERVIEW_STATUS_PASS = 1;
    const APPLY_INTERVIEW_STATUS_WAIT = 0;
    const APPLY_INTERVIEW_STATUS_REFUSE = -1;

    // 统计类型
    const STAT_TYPE_ONLINE = "online"; // 在线时长
    const STAT_TYPE_USER_MATCH = "user-match"; // 匹配
    const STAT_TYPE_USER_CHAT = "user-chat"; // 私聊
    const STAT_TYPE_DYNAMIC = "dynamic"; // 动态
    const STAT_TYPE_RECEIVE_GIFTS = "receive-gifts"; // 流水
    const STAT_TYPE_ASSIGN_USER = "assign-user"; // 分配用户
    const STAT_TYPE = [
        self::STAT_TYPE_RECEIVE_GIFTS,
        self::STAT_TYPE_USER_MATCH,
        self::STAT_TYPE_ASSIGN_USER,
        self::STAT_TYPE_USER_CHAT,
        self::STAT_TYPE_DYNAMIC,
        self::STAT_TYPE_ONLINE,
    ];

    // 经验
    const EXP_TYPE_TASK = 1; // 任务
    const EXP_TYPE_CHAT_REPLY = 2; // 私聊回复

}